<?php
namespace action\all;
class Edit extends Base{
    
    use \action\traits\Edit;
    
    function main(){
        $id = I()->getInt('id', 0);
        if(!$id){
            $this->redirect($this->urldo('index'));
        }
        $info = $this->getEidt($id);
        
        $this->getMenu($info);
        $this->assign('info', $info);
    }

}